//
//  DKFriendViewController.m
//  BSBDJ
//
//  Created by 丁侃 on 16/4/23.
//  Copyright © 2016年 丁侃. All rights reserved.
//

#import "DKFriendViewController.h"

@interface DKFriendViewController ()

@end

@implementation DKFriendViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = DKColorRandom;
    
    UISegmentedControl *segment = [[UISegmentedControl alloc]initWithItems:@[@"订阅",@"关注"]];
    [segment setTintColor:[UIColor whiteColor]];
    NSDictionary *att = @{
                          NSFontAttributeName : [UIFont systemFontOfSize:16.0],
                          NSForegroundColorAttributeName : [UIColor blackColor]
                          };
    [segment setTitleTextAttributes:att forState:UIControlStateNormal];
    [segment setTitleTextAttributes:att forState:UIControlStateSelected];
    self.navigationItem.titleView = segment;
    
    
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithTargrt:self action:@selector(followClick) imageName:@"friendsRecommentIcon" highlightImageName:@"friendsRecommentIcon-click"];
    
}

-(void)followClick
{
    DKLogFunc
}


@end
